import { base } from "./api";
import axios from "./http";
import qs from "qs";

const LAWMONITORING = {
  // 镇街
  STREETTWON: params =>
    axios.get(`${base.URL}/bc_hb/selectTownshipAll`, { params }),
  // 站点名称
  SITENAME: params =>
    axios.get(`${base.URL}/bc_hb/selectDevinciInfoByTownshipId`, { params }),
  // 案卷站点类型
  FILESITETYPE: params =>
    axios.get(`${base.URL}/bc_hb/selectStationTypeAll`, { params }),
  // 处理人
  DEALINGPEOPLE: params =>
    axios.get(`${base.URL}/bc_hb/selectUserByTownshipid`, { params }),
  // 图片上传
  IMAGEVIDEO: params =>
    axios.post(`${base.URL}/bc_hb/uploadDocument`, qs.stringify(params)),
  // 新建案卷
  NEWFILES: params =>
    axios.get(`${base.URL}/bc_hb/insertBcCase_File`, { params })
};

export default LAWMONITORING;
